/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.model.elements;

import org.jfonia.connect5.basics.BasicValueNode;
import org.jfonia.connect5.basics.MutableValueNode;

/**
 *
 * @author Rik Bauwens
 */
public class Chord extends MusicalElement
{
        private MutableValueNode<String> chordNode;

        public Chord()
        {
                this(0);
        }

        public Chord(int difference)
        {
                super(difference);
                chordNode = new BasicValueNode<String>("");
        }

        public MutableValueNode<String> getChordNode()
        {
                return chordNode;
        }

        public String getChord()
        {
                return chordNode.getValue();
        }

        public Chord setChord(String chord)
        {
                chordNode.setValue(chord);
                return this;
        }

        @Override
        public Chord clone(){
            Chord chord = new Chord(getDifference());
            chord.setChord(chordNode.getValue());
            return chord;
        }
}
